from tortoise import fields
from .base import TimestampMixin

class Subject(TimestampMixin):
    """学科模型"""
    id = fields.IntField(pk=True)
    name = fields.CharField(max_length=50, description="学科名称")
    description = fields.TextField(null=True, description="学科描述")
    
    class Meta:
        table = "subjects" 